import request from '@/utils/request'

// 查询领料信息列表
export function listLead(query) {
  return request({
    url: '/process/lead/list',
    method: 'get',
    params: query
  })
}

// 查询领料信息详细
export function getLead(serial) {
  return request({
    url: '/process/lead/' + serial,
    method: 'get'
  })
}

// 新增领料信息
export function addLead(data) {
  return request({
    url: '/process/lead',
    method: 'post',
    data: data
  })
}

// 修改领料信息
export function updateLead(data) {
  return request({
    url: '/process/lead',
    method: 'put',
    data: data
  })
}

// 删除领料信息
export function delLead(serial) {
  return request({
    url: '/process/lead/' + serial,
    method: 'delete'
  })
}
